<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="/WEB-INF/tlds/extremecomponents.tld" prefix="ec" %>
<%@page import="jmc.ui.front.form.ABMPdiForm"%>


<link href="<%=request.getContextPath()%>/css/ajax/ajaxtags.css" rel="stylesheet" type="text/css" />
<link href="<%=request.getContextPath()%>/css/ajax/displaytag.css" rel="stylesheet" type="text/css" />



<link href="<%=request.getContextPath()%>/css/dhtmlgoodies_calendar.css" rel="stylesheet" type="text/css">
<script type="text/javascript" src="js/dhtmlgoodies_calendar.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/dhtmlgoodies_calendar.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/ajax/ajaxtags.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/ajax/ajaxtags_controls.js"></script>
<script type="text/javascript" src="<%=request.getContextPath()%>/js/ajax/ajaxtags_parser.js"></script>

<div class="main">

	<div style="margin:0;padding:0;clear:both;">
   		<html:form styleId="panelProyect">
   			<a href="#" onclick="viewTabUnidad('<bean:write name="abmPdiForm" property="serie"/>','abmPdi.do?method=preparedListoTraslados')" class="tab unselectedTab" onclick="this.blur();"><span>Transporte</span></a>  
	    	<a href="#" onclick="viewTabUnidad('<bean:write name="abmPdiForm" property="serie"/>','abmPdi.do?method=preparedListoPdi')" class="tab currentTab" onclick="this.blur();"><span>Procesos -PDI</span></a>
	    	<a href="#" onclick="viewTabUnidad('<bean:write name="abmPdiForm" property="serie"/>','abmPdi.do?method=preparedListoIrregularidades')" class="tab unselectedTab" onclick="this.blur();"><span>Irregularidades</span></a>
	    </html:form>
	</div>


	<div class="panel_100 tab">
    	
		<div class="space"></div>

    	<fieldset class="defaultFieldset">
    	<legend>Unidades PDI - Procesos</legend>
    	
    			<div class="space"></div>
    			
    			<label class="label_33 field">Serie:</label>
	 			<label class="label_66 data" style="text-align:left;"><bean:write name="abmPdiForm" property="serie"/></label>
	 			 			
	 			<div class="separator"></div>
    	
    	
    			<bean:define name="abmPdiForm" id="pdproc01List" property="pdproc01List"/>

				<% int num = ((ABMPdiForm)request.getAttribute("abmPdiForm")).getPdproc01List().size();
					if (num==0){  %>
					<div class="noDataMessage">La serie ingresada no tiene Procesos de PDI asociados</div>
				<% } else { %>
					<ec:table
						tableId="notReg" 
				    	items="pdproc01List"
						var = "pdproc01"
						locale="es_ES"
						action="abmPdi.do?method=preparedListoUnidades"
						imagePath="images/table/*.gif"
						width="100%"
						rowsDisplayed="30" >
						<ec:row>								
								<ec:column filterable="false" sortable="false" width="40px" property="pracok" title="N* OK" >
									<span>${pdproc01.pracok}</span>
								</ec:column>
								<ec:column filterable="false" sortable="false" width="20px" property="id.prsecu" title="Ord" >
									<span>${pdproc01.id.prsecu}</span>
								</ec:column>
								<ec:column filterable="false" sortable="false" width="100px" property="mpdesc" title="Sector" >
									<span>${pdproc01.pdmpro01.mpdesc}</span>
								</ec:column>
								<ec:column filterable="false" sortable="false" width="110px" property="formatedIngreso" title="Ingreso" >
									<span>${pdproc01.formatedIngreso}</span>
								</ec:column>
								<ec:column filterable="false" sortable="false" width="100px" property="formatedEgreso" title="Egreso" >
									<span>${pdproc01.formatedEgreso}</span>
								</ec:column>
								<ec:column filterable="false" sortable="false" width="300" property="probse" title="Obs" >
									<span>${pdproc01.probse}</span>
								</ec:column>

						</ec:row>
					</ec:table>
					<jsp:include page="../add_on/tableHints.jsp"/>
				<% } %>	
			
    	</fieldset>
		
		<div class="space"></div>
		


	</div>
	
</div>
 

 